Comparisons on shared pointers need .get() called

Refs #4042
Merge pull request #9 from andrsd/null-shared

Comparisons on shared pointers need .get() called