fix case where dependencies are rendered out of order

all tests passing again.
Release 0.5.0