moved lense class to Types
encodeJSON helper, JS.Value instance for lense class
cleanup test suite