Separate shape version and presence of shapes in session
Fixes replay failure when shapes are missing
At first I was not satisfied by the replacement of an option by a non-option plus a boolean. Yet it seems it allow to distinguish the cases no shapes loaded versus session without shapes computed yet.
I'd like to know if this fixes the current problem with SPARK. If yes then I'd agree to merge this MR