Improvements to/restrictions on use of type attribute when using gate or gateHHrates etc.

See https://github.com/NeuroML/NeuroML2/issues/38