Sockeye: Implement reference check in input port declarations