Don't search-replace objects w/private contructor

Stops search-replace from operating on objects that have a non-public
__construct method.