@inheritparams tag: Fixed bugs when params are missing

Inheriting from or to an object without parameters would generate
object undefined exceptions. This is fixed, and covered by unit tests.