added detached property and isDetached method for record class, refs #164