Merge "Minor clean-ups of the reference processing code." into dalvik-dev