Added pattern clone, and getPattern to NgPattern