Modified DebuggerAgent.getFunctionDetails

DebuggerAgent.getFunctionDetails modified to correctly lookup
heap snapshot and console message functions.

Closes #474