Fix #204: Restrict ancestors of classes extending js.Any