Found the bug, it was somewhere else where I wasn't looking. It was not related to the NAMESPACE but an issue with data.frame's where a column has signature 'AsIs' that only popped up in R-devel.