RuntimeMetaObject, ensure that added methods are unique

addMethod() now checks that the added method is unqiue in C++ terms,
and replaces the old with the new one if that's the case.