fixed layout creating bug where too much history is generated.
fixed prototype chain error in editors by modifying copies instead of BaseEditor class itself