fix open check in _load_file
Fix console & script parameter set bugs.
Limit 'console_set_layout' parameters to allowed values if out of range (instead of ignoring call).