Single transverse-spin asymmetries in forward pion production at high energy: Incorporating small-x effects in the target