Extends support array of objects too

This patch allows a schema extends many objects as necessary.