Debugger::log ignores resource #id when calculating hash [Closes #1016]