Fix get_dtype function for non-numpy objects
Make 'N' only an AttributeVariable for Synapses, for "normal" groups it can be a standard Variable because it refers to a fixed value
Implement correct handling of AttributeVariable values, at the moment only relevant for "N" in synapses.