some small optimizations for json unmarshalling
default constructor and array optimization