Gh427 npe with context

Checks core responses to see if they indeed have a context.

Also changes Context to just hold a BinaryValue instead of a byte[]

Fixes #427