SHAPES : Expose inference parameters, fix randomly deadlocking test, mix fixes