fixes international dateline bounding box calculation fixes #44

Should resolve issue that if a bounding box straddles the international dateline return value should be correct.