Add feature guards for necessary requirements

Add `Puppet.feature` guards for the `yard` and `rgen` libraries.