fixed links and batch REST APIs
improved JSON serialization
fixed registering new custom types