Clean up on error during heightmap loading
as reminded by cppcheck
Apply arbitrary field length limit when reading numeric parameters
resolve cppcheck warnings