Updated code snippets
Minor performance improvements in generic argument checks