Handle record fields while checking unused open declarations

Fix #661.
Merge pull request #662 from dungpa/record-value

Handle record fields while checking unused open declarations