Bug 939715: TypedObject PJS API implementation (r=nmatsakis).
Bug 939715: TypedObject PJS API tests (r=nmatsakis).