Allow loadmodel to load models from non-path parameters