Core: @SafeVarargs assertions

Starting from this commit, core/* do not emit any compiler warnings