Fix unexported field detection

fixes #162 , #171