Remove unnecessary using statements.
Add a guard against recording and incrementing on detached metrics.
Validate metric binding type. ref #8