Fix reset when used within the context manager: it should not reset the context manager. In order to detect if we are in a context manager, an internal context manager flag is added. In order for the flag to work correctly, nested context managers must be disallowed.
Fix reset when used within the context manager: it should not reset the context manager. In order to detect if we are in a context manager, an internal context manager flag is added. In order for the flag to work correctly, nested context managers must be disallowed.
Closes #16