check mismatch in shape during xtc load

@schwancr: can you check that this solves the issue that you posted in #189?