Fix/read variable size matrices and optionals
Fixes the following issues:
- reading of MatrixXf was not possible. A memory copy failed as it was assumed that the Matrix was already initialized.
- reading of std::optional in NlohmannJsonReaderWithoutTypeCheck