Renamed findArId to findArID and fixed comments.
Added support for literal integer patterns.