fix handling of indexing dates which we cannot represent
closes #72
fix broken tests