Locally asymptotically optimal tests for autoregressive against bilinear serial dependence