fix i argument to get_timestamp, get_value
fix #183: support stacked scatter