Handle numeric part of preRelease identifiers correctly

Fixes #424 
@forki please review where it could break other things