Adds test for #187, currently failing
Adds support for classes defined in objects, fixes #187
Cleanup commit, removing commented code
Merge pull request #188 from scala/issue-187

Adds support for classes nested in objects, fixes #187