Fix an issue when target source is an array, and add a few example targets.