Bugfix: special treatment for non-dcl constructor functions.
Small simplifications.
Switched unit tests to heya-unit, automated some manual tests, added phantomjs tests.