add attrDef to write-lock whitelist, test attributes in debug
Merge pull request #279 from flightjs/attributes_in_debug

Fix new attributes API in debug mode