the thing about cold mastery, is it doesn't negate cold immunity, so maxing icebolt first would be your best bet. after that and shields, and anything else, throw extra points into mastery for a small boost in damage.
as a question, why are you maxxing all armors?