Cleanup type determination.
The rules are simple and consistently used now.
- If a parameter has a types entry, that adds a rule that determines the type.
- Otherwise it is up the the store.
- FileStore uses the file_name_parameter's extension to decide default.
- Fallback is RGB.