Improved constness checking on fields; adjusted Chapel code.