faster process of huge dynamic array unserialization from JSON + several fixes related to JSON serialization