Added ability to switch quickly between small contexts

Some preliminary code to enable faster context-switching when you want to switch between contexts that contain only a couple dozen elements, and don't want to keep clearing and reactivating everything in the larger contexts that never change.