HHH-8637 - Downcasting with TREAT operator should also filter results by the specified Type