Use forge.util.isArray instead of constructor checks.

- Various other formatting fixes.
- Add missing js files in some legacy browser-side tests.
- Closes #55.