Fix slicing pre node with a function on connection

- Can now connect from a node with slicing and a function
- Added test for this case in test_connection