fixing an issue with loading nets from json: they used to incorrectly initialize with non-typed javascript arrays resulting in decreased performance. This fix basically makes loaded nets from JSON much faster.