Add HasField class with magic constraint solving

Authored by adamgundry on Nov 18 2016, 9:54 AM.