optimized "remove" by using __in__ instead of hasOwnProperty
added (do not use $ prefix for keys which cause allocation)