Now checks to ensure inferred ontology type matches that from the configuration before deciding what behaviour to assign. Closes #248