Don't search-replace objects w/private constructor

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