nidmresults as module, fixes following height threshold testing

This pull request introduces a few fixes following:
 1. the conversion of `nidmresults` into a separate module;
 2. testing performed at incf-nidash/nidm-results_fsl#45 on height threshold encoding (example 002).