Fix coderef handling in source blocks