Fixed code generation issues with method decls. Too liberal and code won't compile because an non-required method decl introduced a type not imported. Too strict and code gen is incomplete (and thus won't compile) or the decls need to noexport a method don't get generated and things end up being exported that should not be.