fix variable declaration without `init` section

- dry tests, plus test for var decl w/o assignment
- fixed bug with define commonjs with no require decls
stylistic fixes
0.6.0