models: when dumping config to json, parse unhandled types correctly
models: when dumping config to json, parse unhandled types correctly

- properly convert numpy types
- handle python 'type' objects

daviddiazvico/keras,keras-team/keras,keras-team/keras,kuza55/keras,dolaameng/keras,nebw/keras,DeepGnosis/keras,relh/keras,kemaswill/keras