Merge #extends into hash before #node etc. to allow the former to be overridden.