Fix extend-method to accept all 'object''s.