CBQE-812: Random values for templates

- Corrected case
  If in case of '"list":[1,2,3]'
  Error: 'int' object has no attribute 'startswith'

Change-Id: Ib9fad318a5453ab345945aefe0356d024391733f
Reviewed-on: http://review.couchbase.org/23886
Reviewed-by: abhinav dangeti <abhinav.dangeti@gmail.com>
Tested-by: abhinav dangeti <abhinav.dangeti@gmail.com>