Add lists correctly for inferred input ports

Bug detected due to removing explicit declaration of input port in
library rstats/list.py