Fixed a bug with the scenario context.

Fixed a bug with the scenario context. Also, hid some methods and
properties from the public API that were not necessary to cut down on
their possible misuse.