Fixed the issue when explicit form models would be stored as sparse matrices, breaking downstream code