Access keys() for both dict and RequesContext

Note that the current implementation would fail (in some cases - like mine where I render the form with a RequestContext ) when rendering Layout() elements on the helper, since under the KeepContext's __enter__ and __exit__ you assume that all "dicts" shall expose the keys() method, which doesn't happen for RequestContext objects.