Fixed a bug in _Tny_loads and added a test for this case.