fix to error and some code tidying and generalising
removed some duplication from the technology and assay type helpers

.. and moved to the more general ontology helper