qtscript: Allow addLabel() to work on all label types. Speed up some object lookups with type info.