Add support for pre_releases argument to the gem state

This should add support for pre_releases to the gem.installed state.