add an optional argument to getAttributes so we can get a feature's attributes except for the geometry ones
use a more strict check for opt_nonGeometry
simplify the code
Merge pull request #1257 from bartvde/getattr

feature.getAttributes() should ignore geometry (r=@tschaub)