Async optional fixes

This fixes and tests that `async-compile` respects optional inputs and computed nodes.