Add extend() method as shortcut for creating proto with inheritance.