Improve Loan Rule handling

Make sure to cache based on the current server in use.
Correctly handle ranges in iTypes and pTypes