Check for mismatched arch in instrepo (#981180)

If the treeinfo arch doesn't match the system's arch, raise an error.

This fixes #12.