[fix] Introduce context assertions. Fixes #71