Check for Object in Stacktrace

Stacktrace is only checking for an array, not objects. It will still try to substr objects.
Merge pull request #148 from JesseObrien/patch-1

Check for Object in Stacktrace