updated MagicLamp#globalize and ensured globalized methods are bound