Make it possible to bind to const float, etc

This was removed this when you were cleaning up after merging my original change. I don't know if you had a good reason, but this does enable some other code to compile like:

class bar {
  const float foo() const;
}
addProperty(foo, &class::bar)

So I'd like to keep it if you don't think it does any harm.