fix some cast/boxing issues
fix local field handling
add debug capability to eval