Add extra support for determining current ruby type

Add `rbx?` `mri?` and `non_mri?` Ruby "types", for #1760 but that highlighted to me that we could use some refactoring across our repos to remove duplication of detection for ruby types