Check for object autoImport in auto plugins. 

Fixes #1314 

## what this changes

Apparently when I was coding this I had intended to work only for `val` and `lazy val`. Later we included `object autoImport` as a use case but apparently did not check. Now we have the support for `object autoImport` and test to confirm it.