Merged NativeJSON compatibility with Alfresco 4.2.2/4.1.8 from Nashorn PoC branch