strptime bug

Thanks to @sebres with #720 for highlighting. Most changes are testcase reverts from #349 which was merged in #368. I believe this is now correct, but please give this thorough review :smile: