support for NewObject and SameObject extended attribute - closes #1