fixed foreach template cloning and children getting wrong model
added literal and non observable support