Changed Session's opIndex and opIndexAssign definitions to be handled compile-time