fix #706 local classes don't have metamodels
clean up member resolution and make it more robust
ws
squash npe
support spread arguments to annotations
fix some bugs and tests for annotations
squash error from test
Merge branch 'master' into 596