Only remove objects from NSCache instance on memory warnings

Do not set this instance to nil.
Remove some compiler warnings

Clean up some code to prevent minor compiler warning such
as `readonly' property attribute conflicting with `strong',
etc.