Fixed bug in dynamic getter closure generation.