- Fixed bug in defConst
- Added checking of writable flag in setProp