Add throw/catch in namespaces and streams

Closes #55