MVStore: temporary tables from result sets could survive re-opening a database, which could result in a ClassCastException.