handle custom bindings in frames properly
propagate bindings in 'extends' expansion