Fixed NaiveBuffer vs node differences + regression tests.