Add support for class member variable

supersedes #1417
The type assertion module does not work on a non module. The test runner treats files ending in .module.js as modules. Try renaming this file.