Debug calculate_ref_properties for iterable input to the map function

Signed-off-by: Howard Cheung <howard.at@gmail.com>